package cn.hdu.liang.core.service.country;

import java.util.List;

import cn.itcast.common.page.Pagination;
import cn.hdu.liang.core.bean.country.Town;
import cn.hdu.liang.core.query.country.TownQuery;

public interface TownService {

    public Integer addTown(Town town);

    public Town getTownByKey(Integer id);

    public List<Town> getTownsByKeys(List<Integer> idList);

    public Integer deleteByKey(Integer id);

    public Integer deleteByKeys(List<Integer> idList);

    public Integer updateTownByKey(Town town);

    public Pagination getTownListWithPage(TownQuery townQuery);

    public List<Town> getTownList(TownQuery townQuery);
}
